package com.meilai.project.entity.media;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 手动锁定表
 * </p>
 *
 * @author xchen
 * @since 2022-04-05
 */
@Data
@TableName("media_point_manual_lock")
@ApiModel(value="MediaPointManualLock对象", description="手动锁定表")
public class MediaPointManualLock {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 ID")
    @TableId(type= IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "choose_id")
    private Long choose_id;

    @ApiModelProperty(value = "锁定人ID")
    private Long user_id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;
    private LocalDateTime deleted_at;


    public static final String CHOOSE_ID = "choose_id";

    public static final String USER_ID = "user_id";

}
